package com.medata.service.impl;

import com.medata.dataObject.Globalsetting;
import com.medata.repository.GlobalsettingRepository;
import com.medata.service.GlobalsettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/5/29 0029 15:02
 * @description：
 */
@Service
public class GlobalsettingServiceImpl implements GlobalsettingService {
    @Autowired
    private GlobalsettingRepository globalsettingRepository;

    @Override
    public Globalsetting findByGsetname(String name) {
        Globalsetting globalsetting = globalsettingRepository.findByGsetname(name);
        return globalsetting;
    }

    @Override
    public List<Globalsetting> findAll() {
        return globalsettingRepository.findAll();
    }

    @Override
    public void save(Globalsetting globalsetting) {
        globalsettingRepository.save(globalsetting);
    }
}
